<template>
  <page-layout no-toolbar>
    <el-card v-if="adminInfo.userRole==='COM'">
      你好{{adminInfo.name}}，欢迎回来！<apan v-if="adminInfo.checkingUserNum>0">，您有{{adminInfo.checkingUserNum}}}个员工加入需要审核</apan>
    </el-card>
    <el-card v-else>
      你好{{adminInfo.name}}，欢迎回来！<apan v-if="adminInfo.checkingNewsNum>0">，您有{{adminInfo.checkingNewsNum}}条新闻待审核</apan>
    </el-card>
  </page-layout>
</template>
<script>
import PageLayout from "@/components/page-layout";
import { mapGetters } from "vuex";
export default {
  beforeRouteEnter(to, from, next) {
    next();
  },
  created() {},
  mounted() {},
  data() {
    return {};
  },
  computed: {
    ...mapGetters({
      adminInfo: "adminInfo"
    })
  },
  methods: {},
  components: {
    PageLayout
  }
};
</script>
<style lang="less">
</style>
